package com.wise.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.wise.dubbo.domain.User;
import com.wise.dubbo.service.UserService;

/**
 * 注意这个Service注解不是spring的Service注解
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public User saveUser(User user) {
        user.setId(1);
        System.out.println(user.toString());
        return user;
    }
}
